Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.liveconnect.onedrive.core.OneDriveComponent--providers

This contribution is part of XML component org.nuxeo.ecm.liveconnect.onedrive.core.OneDriveComponent inside nuxeo-liveconnect-onedrive-core-9.10.jar /OSGI-INF/onedrive-config.xml

Extension Point

Extension point providers of component OAuth2ServiceProviderRegistry.

Contributed Items

  • <provider>
          <name>onedrive</name>
          <description>OneDrive</description>
          <class>org.nuxeo.ecm.liveconnect.onedrive.OneDriveOAuth2ServiceProvider</class>
          <tokenServerURL>https://login.live.com/oauth20_token.srf</tokenServerURL>
          <authorizationServerURL>https://login.live.com/oauth20_authorize.srf?response_type=code</authorizationServerURL>
          <!-- for OneDrive for Business -->
          <!-- sharepoint_domain looks like : https:\/\/{tenant}-my.sharepoint.com\/ -->
          <!--<tokenServerURL>https://login.microsoftonline.com/common/oauth2/token?resource={{ sharepoint_domain }}</tokenServerURL>-->
          <!--<authorizationServerURL>https://login.microsoftonline.com/common/oauth2/authorize?response_type=code</authorizationServerURL>-->
          <scope>wl.signin</scope>
          <scope>wl.offline_access</scope>
          <scope>onedrive.readwrite</scope>
          <scope>wl.emails</scope>
        </provider>

    OneDrive

XML Source

<extension point="providers" target="org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderRegistry">
    <provider>
      <name>onedrive</name>
      <description>OneDrive</description>
      <class>org.nuxeo.ecm.liveconnect.onedrive.OneDriveOAuth2ServiceProvider</class>
      <tokenServerURL>https://login.live.com/oauth20_token.srf</tokenServerURL>
      <authorizationServerURL>https://login.live.com/oauth20_authorize.srf?response_type=code</authorizationServerURL>
      <!-- for OneDrive for Business -->
      <!-- sharepoint_domain looks like : https:\/\/{tenant}-my.sharepoint.com\/ -->
      <!--<tokenServerURL>https://login.microsoftonline.com/common/oauth2/token?resource={{ sharepoint_domain }}</tokenServerURL>-->
      <!--<authorizationServerURL>https://login.microsoftonline.com/common/oauth2/authorize?response_type=code</authorizationServerURL>-->
      <scope>wl.signin</scope>
      <scope>wl.offline_access</scope>
      <scope>onedrive.readwrite</scope>
      <scope>wl.emails</scope>
    </provider>
  </extension>